import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
import { HydratedDocument } from 'mongoose';

export type GpuCodeDocumentType = HydratedDocument<GPU_CODE>;

@Schema()
export class GPU_CODE {
  @Prop({ required: true, unique: true })
  code_name: string; //芯片代号

  @Prop({ required: true, unique: true })
  manufacturers: string; //厂商
}

export const GpuCodeSchema = SchemaFactory.createForClass(GPU_CODE);
